-- GENERATED SPELL FOR [Elder Crag Boar] --


function spell0_1127(pUnit, Event) --@Rushing Charge,Self--
pUnit:FullCastSpellOnTarget(6268,pUnit)
pUnit:RegisterEvent('Sorts_1127', 3000, 1)
end

function Sorts_1127(pUnit, Event)
local choix_sorts_1127 = math.random(0, 0)
if choix_sorts_1127 == 0 then
pUnit:RegisterEvent('spell0_1127', 1, 1)
end
end

function mob1127_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1127', math.random(1500, 3000), 1)
end

function mob1127_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1127_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1127_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1127, 1, 'mob1127_Action')
RegisterUnitEvent(1127, 2, 'mob1127_Leave')
RegisterUnitEvent(1127, 3, 'mob1127_Kill')
RegisterUnitEvent(1127, 4, 'mob1127_Die')
